css怎么消除默认样式


当前第2页 返回上一页

1

ul, ol { list-style: none; }

4、 重置文本格式元素

1

2

3

4

5

6

7

a { text-decoration: none; }

a:hover { text-decoration: underline; }

abbr[title], acronym[title] { /* 注:1.ie6 不支持 abbr; 2.这里用了属性选择符,ie6 下无效果 */

border-bottom: 1px dotted;

cursor: help;

}

q:before, q:after { content: ''; }

5、重置表单元素

1

2

3

4

5

6

legend { color: #000; } /* for ie6 */

fieldset, img { border: none; } /* img 搭车:让链接里的 img 无边框 */

/* 注:optgroup 无法扶正 */

button, input, select, textarea {

    font-size: 100%; /* 使得表单元素在 ie 下能继承字体大小 */

}

6、重置表格元素

1

2

3

4

table {

border-collapse: collapse;

border-spacing: 0;

}

7、 重置 hr

1

2

3

4

hr {

    border: none;

    height: 1px;

}

推荐学习:《css视频教程》

以上就是css怎么消除默认样式的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css padding什么意思

html中如何设置不可点击

如何设置css作用域

jquery怎么改变css样式

css指的是什么

不属于css插入形式的是什么

css怎么设置图片圆角

css如何做三角形

css怎么设置标签属性

使用css实现自适应标题浮动效果(代码实例)

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...