CSS如何将边框设置为虚线_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:25
Original
1683 people have browsed it

CSS如何将边框设置为虚线:

在默认状态文本框都是实线边框,下面就来介绍一下如何实现虚线边框。

实例代码如下: 

<!DOCTYPE html><html><head><meta charset=" utf-8"><meta name="author" content="http://www.51texiao.cn/" /><title>蚂蚁部落</title><style type="text/css">.mytest{  width:200px;  height:200px;  border:1px dashed green;}</style></head><body><div class="mytest">蚂蚁部落</div></body></html>
Copy after login

以上代码将一个div的边框设置为虚线。方法是将border属性中控制边框形态的的属性值设置为dashed即可。

原文地址是:http://www.51texiao.cn/div_cssjiaocheng/2015/0519/1892.html

最原始地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=4700

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!