dotted属性(solid这个是什么属性)
本文目录
- solid这个是什么属性
- div 有什么属性
- 如何让hr显示为虚线
- dreamweaver中水平线属性,对话框中没有的属性是
- 网页中css如何实现点划线
- 请问HTML语句中“border=1”是什么意思,谢谢!
- border-style属性有几种(分别是)可否编一小段
- css怎么实现整行下划
- solid 这个是哪些属性啊
solid这个是什么属性
在css中是对边框的样式为实线的属性。
p
{
border-style:solid;
}
所有浏览器都支持 border-style 属性。
注释:任何的版本的 Internet Explorer (包括 IE8)都不支持属性值 "inherit" 或 "hidden"。
定义和用法:
border-style 属性用于设置元素所有边框的样式,或者单独地为各边设置边框样式。只有当这个值不是 none 时边框才可能出现。
例子 1:
border-style:dotted solid double dashed;
解析:
上边框是点状
右边框是实线
下边框是双线
左边框是虚线
div 有什么属性
回答:Div的一些基本属性
left 相对于窗口左边的位置
top 相对于窗口上边的位置
width DIV tag 的宽度。所有在 DIV 里的文字或html都在里面。
height DIV tag 的高度。这个性质很少用除非你想 Clip 层次。
color(字体颜色):色彩代码;
font-size(字体大小):数值;
line-height(行高):数值;
border(边框):宽度、类型和颜色,类型主要支持以下几种:none,dotted,dashed,solid,double,groove,ridge,inset,window-inset,outset;
font-weight(字体粗细):normal、bold、bolder、lighter;
font-family(字体类型):Arial、Tahoma、Verdana、仿宋_GB2312、黑体、楷体_GB2312、隶书、宋体、幼圆
clip 给出 layer 的 clipping(可看的见的)部分。Clip 可使得 DIV 显示为一个可以定义的很准确的方块。你可以用以下的四个值来给出这个方块的在 DIV 位置和大小。
clip:rect(top,right,bottom,left);
visibility 隐蔽或展现DIV 根据它的值“visible”,“hidden”,“inherit”。
z-index DIV tag 的立体位置。值越大 DIV 的位置越高。
background-color DIV 背景的颜色。
layer-background-color Netscape 的 DIV 背景颜色。
background-image DIV 的背景图象。
layer-background-image Netscape 的 DIV 的背景图象
filter:chroma(COLOR=转换成透明的颜色)(chroma过滤器):色彩代码,该颜色将转换成透明效果;
word-break(断字):normal(默认,正常断字)、keep-all(严格不断字)、break-all(严格断字);
direction(文字方向):ltr(默认,从左向右)、rtl(从右向左);
padding-left:层中的内容距离层左边框的距离;padding-right:层中的内容距离层左边框的距离;padding-top:层中的内容距离层顶部边框的距离;padding-bottom:层中的内容距离层底部边框的距离。
如何让hr显示为虚线
可以通过css的式样来控制:
1《hr align="center" width="700px" style= "border:1 dotted (这个表示虚线) #666666(颜色)" /》
别的属性:
none:无样式;dotted:点线;dashed:虚线;solid:实线;
double:双线;groove:槽线;ridge:脊线;inset:内凹;outset:外凸。
dreamweaver中水平线属性,对话框中没有的属性是
具体如下:
第一种:
《hr style=" height:2px;border:none;border-top:2px dotted #185598;" /》
height:2px;是hr的高度
border:none;是没有边框
border-top:2px dotted #185598;是设置横线的样式
dotted 虚线 #185598 颜色
第二种:
《hr style="height:1px;border:none;border-top:1px dashed #0066CC;" /》
第三种:
《hr style="height:1px;border:none;border-top:1px solid #555555;" /》
第四种:
《hr style="height:3px;border:none;border-top:3px double red;" /》
网页中css如何实现点划线
1、可以用CSS中的边框实现,border是设置边框的属性,有一个属性dotted就是点划线。具体的设置方法,首先新建一个html文件,在文件内写入一个div标签,给它一个class属性demo:
2、设置demo的class样式,这里给demo一个宽度,表示点划线的长度,高度设为0,然后设置border-bottom的属性的边框样式为dashed点划线,宽度为5px,颜色为黑色,这样就设置好了:
3、打来浏览器,可以看到屏幕中的一条黑色点划线、以上就是用css实现点划线的流程:
请问HTML语句中“border=1”是什么意思,谢谢!
HTML语句中“border=1”是边框为1像素的意思。
border 是 CSS 的一个属性,用 border 可以给能确定范围的 HTML 标记(如 TD、DIV 等等)画边框,它可以定义边框线的类型、宽度和颜色,利用这个特性,可以制作一些特殊效果。
一、border-width:thin medium thick 10px;
上边框是细边框,右边框是中等边框,下边框是粗边框,左边框是 10px 宽的边框。
二、border-width:thin medium thick;
上边框是 10px,右边框和左边框是中等边框,下边框是粗边框。
三、border-width:thin medium;
上边框和下边框是细边框,右边框和左边框是中等边框。
四、border-width:thin;
所有 4 个边框都是细边框。
扩展资料:
边框其他样式:
none定义无边框。
solid定义实线。
dotted定义点状边框。在大多数浏览器中呈现为实线。
dashed定义虚线。在大多数浏览器中呈现为实线。
double定义双线。双线的宽度等于 border-width 的值。
groove定义 ** 凹槽边框。其效果取决于 border-color 的值。
ridge定义 ** 垄状边框。其效果取决于 border-color 的值。
inset定义 ** inset 边框。其效果取决于 border-color 的值。
outset定义 ** outset 边框。其效果取决于 border-color 的值。
inherit规定应该从父元素继承边框样式。
border-style属性有几种(分别是)可否编一小段
border-style 属性可设置四边的样式,可以有1到4种样式
举例
table {border-style: dotted}
all four borders will be dotted
四条边都为打点型
table {border-style: dotted dashed}
top and bottom border will be dotted, left an right border will be dashed
上下边为打点型的,左右为粉碎型
table {border-style: dotted dashed solid}
top border will be dotted, left and right border will be dashed, bottom border will be solid
上边为打点型,左右为粉碎型边框,下边框为线型
table {border-style: dotted dashed solid double}
top border will be dotted, right border will be dashed, bottom border will be solid, left border will be double
上边为打点型,右边为粉碎型,下边为线型,左边为双线型
可用值
值 描述
none Defines no border
无边框
hidden The same as "none", except in border conflict resolution for table elements
除了在table元素的边框解析上有冲突外基本和"none"一样
dotted Defines a dotted border. Renders as solid in most browsers
打点边框,在大多数浏览器中会变为线条
dashed Defines a dashed border. Renders as solid in most browsers
断裂边框,在大多数浏览器下也会变为线条(在IE里dotted和dashed基本无区别,FF浏览器有所不同)
solid Defines a solid border
线条边框
double Defines two borders. The width of the two borders are the same as the border-width value
双线边框。两线的宽度和border-width值一样
groove Defines a ** grooved border. The effect depends on the border-color value
**沟槽边框。效果依赖于border-color的值
ridge Defines a ** ridged border. The effect depends on the border-color value
**脊状边框。效果依赖于border-color的值
inset Defines a ** inset border. The effect depends on the border-color value
**嵌入边框。效果依赖于border-color的值
outset Defines a ** outset border. The effect depends on the border-color value
**突出边框。效果依赖于border-color的值
css怎么实现整行下划
可以用CSS中的边框虚线来实现,CSS中border是边框,有一个属性dotted就是点划线。
1
div{border-bottom:dotted 1px #000;}
CSS(层叠样式表)级联样式表是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
solid 这个是哪些属性啊
是指css border-tyle 吧1.none:表示没 2.solid:表示单线 3.double:表示双线 4.groove:表示凹槽 5.redge:表示皱纹 6.dotted:点线(貌似IE6下效果等同于dashed) 7.dashed:虚线其他属性去尝试下就看到效果了如给div定义宽度为1像素红色单线边框复制内容到剪贴板代码:div {border:1px solid red;}
更多文章:
_可以分成几个字?数据库系统从使用和运行方式上可以分成两种类型,是哪两种啊,求解
2026年4月18日 20:20








